package com.tx.admin.entity;

import java.util.Date;
import java.util.List;

import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@MappedSuperclass
@Data
public class TreeEntity<E> extends SuperEntity {

	@ApiModelProperty("标题")
	private String label;
	@ApiModelProperty("父编号")
	private String parentId;
	
	@Transient
	private E parent;
	
	@Transient
	private List<E> children;
	
}
